package com.project.service;

import com.project.dao.IUserDao;
import com.project.dao.impl.IUserDaoImpl;
import com.project.server.Request;
import com.project.server.Response;

/**
 * 删除业务主键
 */
public class DelService implements Servlet {
private IUserDao dao = new IUserDaoImpl();
public void service(Request req, Response resp){
//    得到客户提交的id
    int id = Integer.parseInt(req.getParamMap("id"));
//    调用持久方法，完成删除
    dao.del(id);
//    刷新内容
    FindAllService find = new FindAllService();
    find.service(req,resp);
}
}
